import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/index.scss'

import moment from 'moment' // 引入插件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 引入百度地图
import BaiduMap from 'vue-baidu-map'
// 注册自己的组件
import Component from '@/components' // 注册自己的插件
// EXS
import * as echarts from 'echarts'
Vue.use(BaiduMap, {
  ak: '5xNVZXEBWbAycRWvPen4RGubauPrshbN'// ak 是在百度地图开发者平台申请的密钥
})
Vue.use(Component)
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.prototype.$moment = moment // 给Vue函数添加一个原型属性$moment 指向moment
Vue.use(ElementUI)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
